#include "RollDice.h"

RollDice::RollDice()
    :
    MaxDieValue(6),
    RandomNumAddress()
{}

RollDice::  RollDice(size_t a)
    :
    MaxDieValue(6),
    RandomNumAddress()
{
    MaxDieValue = a;
}

size_t RollDice::GetRoll()
{

    size_t Rolled = (GetRandomNumber() % (MaxDieValue - MinDieValue + 1)) + MinDieValue;
    return Rolled;
}

size_t RollDice::GetRoll(int MaxValue)
{
    MaxDieValue = MaxValue;
    return (GetRoll());
}

size_t RollDice::GetRandomNumber()
{
    size_t ReturnValue = rand();
    return ReturnValue;
}
